package com.cha.chaApp.family.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cha.chaCommon.core.entity.Family;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class FamilyVo {

    /**
     * family_id,主键
     */
    @TableId(type = IdType.AUTO)
    private Long familyId;

    private String familyName;

    private String userId;

    private List<String> userName;

    public FamilyVo(Family family) {
        this.familyId = family.getFamilyId();
        this.familyName = family.getFamilyName();
        this.userId = family.getUserId();
    }

}
